package org.springblade.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.modules.admin.vo.MaintainCompanyVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.modules.admin.entity.MaintainCompany;
import org.springblade.modules.admin.mapper.MaintainCompanyMapper;
import org.springblade.modules.admin.service.MaintainCompanyService;
@Service
public class MaintainCompanyServiceImpl extends ServiceImpl<MaintainCompanyMapper, MaintainCompany> implements MaintainCompanyService{

	@Override
	public IPage<MaintainCompanyVO> selectPages(IPage<MaintainCompanyVO> page, MaintainCompany maintainCompany) {

		maintainCompany.setTenantId(AuthUtil.getTenantId());
		return page.setRecords(baseMapper.selectPages(page, maintainCompany));
	}

	@Override
	public List<MaintainCompanyVO> maintainCompanyVOList() {
		return baseMapper.maintainCompanyVOList(AuthUtil.getTenantId());
	}

}
